﻿using UnityEngine;
using System.Collections;

public class ChangeHPBarName : MonoBehaviour {

	public string nameToChange;

	void Start()
	{
		gameObject.GetComponent<UILabel>().text = nameToChange;
	}

	void OnEnable()
	{
		gameObject.GetComponent<UILabel>().text = nameToChange;
	}

	void Update()
	{
		gameObject.GetComponent<UILabel>().text = nameToChange;
	}
}
